

/**
 * 删除表
 */
function dropPonTab(){
	$.extend($.mobile,{
		loadingMessage: '正在创建数据表...',
	});
	/**
	 * 删除机构表
	 */
	dropPonOrgan(createPonOrgan);
	
	/**
	 * 删除部门表
	 */
	dropPonDepart(createPonDepart);
	
	/**
	 * 删除用户表
	 */
	dropPonUser(createPonUser);
	
	/**
	 * 删除抽屉表
	 */
	dropPonDrawer(createPonDrawer);
	
	/**
	 * 删除机构环节文书关联表
	 */
	dropPonCaseLinkDocument(createPonCaseLinkDocument);
	
	/**
	 * 删除案件编号表
	 */
	dropPonCaseNumber(createPonCaseNumber);
	
	/**
	 * 删除机构执法门类
	 */
	dropPonOrganZfml(createPonOrganZfml);
	
	/**
	 * 删除违法行为表
	 */
	dropPonCaseCause(createPonCaseCause);
	
	/**
	 * 删除法条表
	 */
	dropPonLawContent(createPonLawContent);
	
	/**
	 * 删除自由裁量权表
	 */
	dropPonDiscretion(createPonDiscretion);
	
	/**
	 * 删除立案地址表
	 */
	dropPonCaseFillingPlace(createPonCaseFillingPlace);
	
	/**
	 * 删除执法人员表
	 */
	dropPonCaseSTAFF(createPonCaseSTAFF);
	
	
	/**
	 * 删除行政处罚种类表
	 */
	dropPonAdministrativePunishment(createPonAdministrativePunishment);
	
	/**
	 * 删除案件版本号表
	 */
	dropPonCaseVersion(createPonCaseVersion);
	
	/**
	 * 删除文书表
	 */
	dropPonTables();	
}

/**
 * 删除文书表
 */
function dropPonTables(){
	dropCaseBasicInfo(createPonCaseBasicInfo);
	dropCaseBasicInfoCl(createPonCaseBasicInfoCl);
}
createPonTab();
/**
 * 初始化机构、部门、用户、抽屉、机构环节文书表数据
 **/
function createPonTab(){
	/**
	 * 创建机构表
	 **/
	createPonOrgan();

	/**
	 * 创建部门表
	 **/
	createPonDepart();

	/**
	 * 创建用户表
	 **/
	createPonUser();

	/**
	 * 创建抽屉表
	 **/
	createPonDrawer();

	/**
	 * 创建机构环节文书关联表
	 **/
	createPonCaseLinkDocument();

	/**
	 * 创建案件编号表
	 **/
	createPonCaseNumber();

	/**
	 * 创建机构执法门类表
	 **/
	createPonOrganZfml();

	/**
	 * 创建违法行为表
	 **/
	createPonCaseCause();

	/**
	 * 创建法条表
	 **/
	createPonLawContent();

	/**
	 * 创建自由裁量权表
	 **/
	createPonDiscretion();

	/**
	 * 创建立案地址表
	 **/
	createPonCaseFillingPlace();

	/**
	 * 创建执法人员表
	 **/
	createPonCaseSTAFF();
	
	/**
	 * 创建行政处罚种类表
	 **/
	createPonAdministrativePunishment();

	/**
	 * 创建案件版本号表
	 **/
	createPonCaseVersion();

	/**
	 * 创建文书表
	 */
	createPonTables();
}

/**
 * 创建机构表 organ
 **/
function createPonOrgan(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS ORGAN(" +
			            "ID VARCHAR(100)," +                 //机构表主键
			            /*"CREATETIME VARCHAR(20)," +*/
			            "NAME VARCHAR(255)," +             //机构名称
			            "SORT VARCHAR(100)," +               //序号
			            "STATUS VARCHAR(255),"+            //有效
			            "CODE VARCHAR(255),"+              //代码
			            "PID VARCHAR(100),"+                  //父节点ID
			            "XZQHID BIGINT(20),"+                //行政区划ID
			            "ADDRESS VARCHAR(255),"+              
			            "ZIPCODE VARCHAR(255),"+              
			            "CONTACTOR VARCHAR(255),"+              
			            "TELEPHONE VARCHAR(255),"+    
			            "ACCOUNT VARCHAR(255),"+   
			            "BANK VARCHAR(255),"+   
			            "GOVERNMENT VARCHAR(255),"+   
			            "RECONSIDERATIONORGAN VARCHAR(255)"+   
			            ")", 
			            [], 
			            function(tx,result){
			            	if(typeof('callback')=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建机构表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建部门表 depart
 **/
function createPonDepart(){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS DEPART(" +
			            "ID VARCHAR(100)," +                  //主键
			            /*"CREATETIME VARCHAR(20)," +*/
			            "NAME VARCHAR(255)," +              //部门名称
			            "SORT VARCHAR(100)," +                //序号
			            "STATUS VARCHAR(255),"+             //状态
			            "CODE VARCHAR(255),"+               //代码
			            "PID VARCHAR(100),"+                  //父节点ID
			            "OID VARCHAR(100)"+                   //机构ID
			            ")", 
			            [], 
			            function(tx,result){
			            	//message('创建部门表成功');
			            }, 
			            function(tx,error){
			            	pMessage('创建部门表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建用户表 user
 **/
function createPonUser(){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS USER(" +
			            "ID BIGINT(20)," +                       //用户主键
			            /*"CREATETIME VARCHAR(20)," +
			            "DESCRIPTION VARCHAR(255)," +*/
			            "EMAIL VARCHAR(255)," +                  //电子邮件
			            "IDENTITY VARCHAR(30),"+                 //证件号码
			            "MOBILE VARCHAR(255),"+                  //手机号码
			            /*"PASSWORD VARCHAR(255),"+    */            
			            "NPASSWORD VARCHAR(255) DEFAULT '25d55ad283aa400af464c76d713c07ad',"+               //离线登录密码
			            "REALNAME VARCHAR(255),"+                //真实姓名
			            "STATUS VARCHAR(255),"+                  //用户状态
			            "USERNAME VARCHAR(30),"+                 //登录名称
			            "DID VARCHAR(100),"+                       //部门ID
			            "DNAME VARCHAR(255),"+                   //部门名称
			            "OID VARCHAR(100),"+                       //机构ID
			            "ONAME VARCHAR(255),"+                   //机构名称
			            "XZQHID BIGINT(20),"+                     //行政区划ID
			            "XZQHNAME VARCHAR(255)"+                     //行政区划名称
			            ")", 
			            [], 
			            function(tx,result){ 
			            	//message('创建用户表成功'); 
			            }, 
			            function(tx,error){
			            	pMessage('创建用户表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建抽屉表 drawer
 **/
function createPonDrawer(){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS DRAWER(" +
			            "ID VARCHAR(100)," +                      //抽屉主键
			            /*"CREATETIME VARCHAR(20)," +   */
			            "NAME VARCHAR(255)," +                  //名称
			            "SORT BIGINT(20)," +                    //序号
			            "STATUS VARCHAR(255),"+                 //状态
			            "PID VARCHAR(100)"+                       //父节点ID
			            ")", 
			            [], 
			            function(tx,result){
			            	//message('创建字典表成功'); 
			            }, 
			            function(tx,error){
			            	pMessage('创建字典表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建机构环节文书关联表 CaseLinkDocument
 **/
function createPonCaseLinkDocument(){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_LINK_DOCUMENT(" +
			            "LINK_DOCUMENT_ID VARCHAR(100)," +         //主键
			            /*"CREATEID VARCHAR(255)," +
			            "CREATE_NAME VARCHAR(20)," +
			            "CREATE_TIME VARCHAR(255)," +
			            "MODIFY_ID VARCHAR(20)," +
			            "MODIFY_TIME VARCHAR(255)," +
			            "NOTE VARCHAR(255)," +*/
			            "DOCNAMEID VARCHAR(255)," +              //文书名称ID
			            "LINKNAMEID VARCHAR(255)," +             //环节名称ID
			            "DOCNAME VARCHAR(255)," +                //文书名称
			            "LINKNAME VARCHAR(255)," +               //环节名称
			            "DOCPATH VARCHAR(255)," +                //文书路径
			            "SORT BIGINT(20)," +                     //文书序号
			            "REQUIRED VARCHAR(255)," +               //必要环节1、是；0、否
			            "OID VARCHAR(100)"+                        //机构ID
			            ")", 
			            [], 
			            function(tx,result){ 
			            	//message('创建机构环节文书关联表成功'); 
			            }, 
			            function(tx,error){
			            	pMessage('创建机构环节文书关联表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建案件编号表 CaseNumber
 **/
function createPonCaseNumber(){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_NUMBER(" +
			            "CASE_NUMBER_ID VARCHAR(255)," +         //主键
			            "REGEX VARCHAR(255)," +   
			            "ORGANID VARCHAR(100)," +               
			            "CASEWORD VARCHAR(255)," +                
			            "CASEYEAR BIGINT(20)," +                
			            "ONLINENUMBER BIGINT(20)," + 
			            "OFFLINENUMBER BIGINT(20)," +   
			            "STARTNUMBER BIGINT(20),"+    
			            "ENDNUMBER BIGINT(20),"+ 
			            "DIGIT BIGINT(20)"+                 
			            ")", 
			            [], 
			            function(tx,result){ 
			            	//message('创建案件编号表成功'); 
			            }, 
			            function(tx,error){
			            	pMessage('创建案件编号表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建机构执法门类表
 **/
function createPonOrganZfml(){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS ORGANZFML(" +
			            "CASE_ORGAN_ZFML_ID VARCHAR(255)," +                 
			            "ORGANID VARCHAR(100)," +             //机构ID
			            "ORGANNAME VARCHAR(255)," +         //机构名称
			            "ZFML VARCHAR(255),"+               //执法门类
			            "ZFMLID VARCHAR(255)"+              //执法门类ID
			            ")", 
			            [], 
			            function(tx,result){
			            	//message('创建机构执法门类表成功'); 
			            }, 
			            function(tx,error){
			            	pMessage('创建机构执法门类表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建法条数据表 CASE_LAW_CONTENT
 */
function createPonLawContent(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_LAW_CONTENT(" +
			            "CASE_LAW_CONTENT_ID INTEGER," +
/*			            "STRCHAPTER BIGINT(20)," +
			            "STRSECTION BIGINT(20)," +*/
			            "STRITEM BIGINT(20)," +
			            "STRCLAUSE BIGINT(20)," +
			            "STRIITEM BIGINT(20)," +
			            "STRCODE VARCHAR(20)," +
			            "AMOUNT VARCHAR(20)," +
			            "UPPERLIMIT VARCHAR(20)," +
			            "LAWERLIMIT VARCHAR(20)," +
			            "STRCONTENT VARCHAR(4000)," +
			            "YJTL VARCHAR(4000)," +
			            "CFBZ VARCHAR(4000)," +
			            "BID INTEGER," +
			            "STRNAME VARCHAR(4000)," +
			            "STRNUMBER VARCHAR(4000)," +
			            "CASE_CAUSE_ID INTEGER" +
			            ")", 
			            [], 
			            function(tx,result){ 
			            	if(typeof(callback)=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建法条表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建违法行为数据表 CASE_CAUSE
 */
function createPonCaseCause(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_CAUSE(" +
			            "CASE_CAUSE_ID INTEGER," +
			            "CAUSENUMBER VARCHAR(20)," +
			            "ZFML VARCHAR(20)," +
			            "ZFMLID VARCHAR(20)," +
			            "CAUSECONTENT VARCHAR(4000)" +
			            ")", 
			            [], 
			            function(tx,result){ 
			            	if(typeof(callback)=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建违法行为表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建自由裁量权数据表 CASE_DISCRETION
 */
function createPonDiscretion(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_DISCRETION(" +
			            "CASE_DISCRETION_ID VARCHAR(20)," +
			            "WFCD VARCHAR(20)," +
			            "WFCDID VARCHAR(20)," +
			            "WFQJ VARCHAR(2000)," +
			            "DCFBZ VARCHAR(2000)," +
			            "UPPERLIMIT VARCHAR(20)," +
			            "LAWERLIMIT VARCHAR(20)," +
			            "CASE_CAUSE_ID INTEGER" +
			            ")", 
			            [], 
			            function(tx,result){ 
			            	if(typeof(callback)=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建自由裁量权表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建立案地址数据表 CASE_FILLINGPLACE
 */
function createPonCaseFillingPlace(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_FILLINGPLACE(" +
			            "CASE_FILLINGPLACE_ID INTEGER primary key AutoIncrement," +
			            "ADDRESS VARCHAR(200)," +
			            "ORGANID VARCHAR(100)," +
			            "ORGANNAME VARCHAR(200)," +
			            "CREATE_TIME DATETIME "+
			            ")", 
			            [], 
			            function(tx,result){ 
			            	if(typeof(callback)=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建立案地址表失败'); 
			            }
				);
		    }
		);
	}
}


/**
 * 创建执法人员数据表 CASE_STAFF
 */
function createPonCaseSTAFF(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_STAFF(" +
			            "CASE_STAFF_ID INTEGER primary key AutoIncrement," +
			            "STAFF_NAME VARCHAR(200) NOT NULL," +
			            "STAFF_CERTIFICATEID VARCHAR(200) NOT NULL," +
			            "ORGANID VARCHAR(100) NOT NULL," +
			            "ORGANNAME VARCHAR(200)," +
			            "CREATE_TIME DATETIME "+
			            ")", 
			            [], 
			            function(tx,result){ 
			            	if(typeof(callback)=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建执法人员表失败'); 
			            }
				);
		    }
		);
	}
}


/**
 * 创建行政处罚种类数据表 CASE_ADMINISTRATIVE_PUNISHMENT
 */
function createPonAdministrativePunishment(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_ADMINISTRATIVE_PUNISHMENT(" +
			            "CASE_ADMINISTRATIVEPUNISHMENT_ID INTEGER primary key AutoIncrement," +
			            "ADMINISTRATIVEPUNISHMENT_NAME VARCHAR(200) NOT NULL," +
			            "ORGAN_ID VARCHAR(200)," +
			            "IS_COMMON VARCHAR(200)," +
			            "CREATE_TIME DATETIME "+
			            ")", 
			            [], 
			            function(tx,result){ 
			            	if(typeof(callback)=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建行政处罚种类表失败'); 
			            }
				);
		    }
		);
	}
}

/**
 * 创建案件版本号表 CASE_VERSION
 */
function createPonCaseVersion(callback){
	if(pdb){
		pdb.transaction(
			function(tx) {
			    tx.executeSql(
			            "CREATE TABLE IF NOT EXISTS CASE_VERSION(" +
			            "CASE_VERSION_ID INTEGER," +
			            "GXFS VARCHAR(200)," + /**更新方式：手动，自动 **/
			            "GXDATE DATETIME,"+     /**更新日期 **/
			            "ORGANID VARCHAR(100)"+     /**更新机构ID **/
			            ")", 
			            [], 
			            function(tx,result){ 
			            	if(typeof(callback)=='function'){
			            		callback();
			            	}
			            }, 
			            function(tx,error){
			            	pMessage('创建案件版本号表失败'); 
			            }
				);
		    }
		);
	}
}
/**
 * 删除机构表 organ
 * @param callback
 */
function dropPonOrgan(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE ORGAN", [], 
							function(tx,result){ 
								if(typeof(callback)=='function'){
									callback();
								}
							}, 
							function(tx,error){
								pMessage('删除机构表失败');
							}
					);
				}
		);
	}
}
/**
 * 删除部门表 depart
 * @param callback
 */
function dropPonDepart(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE DEPART", [], 
								function(tx,result){ 
							if(typeof(callback)=='function'){
								callback();
							}
						}, 
						function(tx,error){
							pMessage('删除部门表失败');
						}
					);
				}
		);
	}
}
/**
 * 删除用户表 user
 * @param callback
 */
function dropPonUser(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE USER", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除用户表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除抽屉表 drawer
 * @param callback
 */
function dropPonDrawer(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE DRAWER", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除抽屉表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除机构环节文书关联表 CaseLinkDocument
 * @param callback
 */
function dropPonCaseLinkDocument(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_LINK_DOCUMENT", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除机构环节文书关联表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除案件编号表 CaseNumber
 * @param callback
 */
function dropPonCaseNumber(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_NUMBER", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除案件编号表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除机构执法门类表 OrganZfml
 * @param callback
 */
function dropPonOrganZfml(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE ORGANZFML", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除机构执法门类表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除违法行为表 CaseCause
 * @param callback
 */
function dropPonCaseCause(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_CAUSE", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除违法行为表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除法条表 LawContent
 * @param callback
 */
function dropPonLawContent(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_LAW_CONTENT", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除法条表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除自由裁量权表 Discretion
 * @param callback
 */
function dropPonDiscretion(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_DISCRETION", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除自由裁量权表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除立案地址表 CaseFillingPlace
 * @param callback
 */
function dropPonCaseFillingPlace(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_FILLINGPLACE", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除立案地址表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除执法人员表 CaseSTAFF
 * @param callback
 */
function dropPonCaseSTAFF(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_STAFF", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除执法人员表失败');
					}
					);
				}
		);
	}
}

/**
 * 删除行政处罚种类表 AdministrativePunishment
 * @param callback
 */
function dropPonAdministrativePunishment(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_ADMINISTRATIVE_PUNISHMENT", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除行政处罚种类表失败');
					}
					);
				}
		);
	}
}
/**
 * 删除案件版本号表 CaseVersion
 * @param callback
 */
function dropPonCaseVersion(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_VERSION", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除案件版本号表失败');
					}
					);
				}
		);
	}
}



/**
 * 删除案件登记表 CaseBasicInfo
 * @param callback
 */
function dropPonCaseBasicInfo(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_BASICINFO", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除案件登记表失败');
					}
					);
				}
		);
	}
}

/**
 * 删除案件登记处理表 CaseBasicInfoCl
 * @param callback
 */
function dropPonCaseBasicInfoCl(callback){
	if(pdb){
		pdb.transaction(
				function(tx) {
					tx.executeSql("DROP TABLE CASE_BASICINFOCL", [], 
							function(tx,result){ 
						if(typeof(callback)=='function'){
							callback();
						}
					}, 
					function(tx,error){
						pMessage('删除案件登记处理表失败');
					}
					);
				}
		);
	}
}